#ifndef RUNNINGLINE_H
#define RUNNINGLINE_H

#include <QtQuick/QQuickPaintedItem>
#include <QTimer>
#include <QPixmap>

class RunningLine : public QQuickPaintedItem
{
    Q_OBJECT
public:
    explicit RunningLine(QQuickItem *parent = 0);

protected:
    void paint(QPainter *painter);
    
signals:
    
public slots:

private slots:
    void timeout();

private:
    int mTextX;
    QTimer *mTimer;
    QPixmap mTextPix;
};

#endif // RUNNINGLINE_H
